﻿<textarea id="src" style="width:100%;height:300px" onchange="convert();">
</textarea>

<textarea id="result" style="width:100%;height:300px">
</textarea>

<script>
function convert()
{
document.getElementById("result").value="javascript:"+
	document.getElementById("src").value.replace(/ /g,"%20").replace(/\r/g,"").replace(/\n/g,"").replace(/\t/g,"");
}
</script>
